home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: "Best fit" algorithm (help)
- Date: 30 Mar 1996 10:04:32 +1200
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4jhmpg$666@airdmhor.gen.nz>
- References: <APC&7'0'22b6b83'874@peg.apc.org> <4j9215INNgbo@keats.ugrad.cs.ubc.ca> <4jbb9d$g14@news.xs4all.nl> <4jbvvaINNsqi@mayne.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- In article <4jbb9d$g14@news.xs4all.nl>, Falstaff <falstaff@xs4all.nl> wrote:
- > Hmmm. I think the user wants to minimize just that (unused space).
-
- Kazimir Kylheku:
- > The quoted paragraph clearly states an objective involving the maximum _number_
- > of songs, as well as the objective of finding a good fit.
-
- I get the impression that the original poster had a list of songs, all of
- which they wanted to get on tape with minimal wastage. I know it's not
- exactly what they said (and I hate it when people do this to me) but it
- seems like what they would most likely want.
-
-
- In article <4jbb9d$g14@news.xs4all.nl>, Falstaff <falstaff@xs4all.nl> wrote:
- > To do that, you should pick the *largest* item that will still fit.
-
- Kazimir Kylheku:
- > Such a greedy strategy will unfortunately exhaust the available space using the
- > least number of songs. You also need to implement some sort of backtracking to
- > find the optimal solution.
-
-
- Why not copy the smallest song over and over to every tape?
-
-
- I used to sort files largest to smallest and copy them to disk with
- XTGold, every time it asked for a new disk I would try all the used disks
- before I used a fresh disk. Was that the method described?
-